package com.school.graduation.model;

import java.io.Serializable;
import java.util.List;

import cn.bmob.v3.BmobObject;

/**
 * 二手物品
 * Created by U-nookia on 2016/12/20.
 */
public class Goods extends BmobObject implements Serializable{
    private GoodsType goodsType;  //物品类型
    private Student studentIssue;//发布该物品的学生
    private float primeCost; //原价
    private float primeCurrent; //现价
    private String goodsTitle;  //物品标题
    private Integer clickRate;  //点击量--
    private Integer messageRate;  //留言数
    private List<String> pictures; //图片url集合--
    private float freight;  //运费
    private String describe;  //描述
    private int condition;  //货物状态
    private boolean isBrandNew; //是否全新
    private Student studentBuyer;//购买该物品的学生

    public Goods() {
        clickRate = 0;
        messageRate = 0;
    }

    public float getPrimeCost() {
        return primeCost;
    }

    public void setPrimeCost(float primeCost) {
        this.primeCost = primeCost;
    }

    public float getPrimeCurrent() {
        return primeCurrent;
    }

    public void setPrimeCurrent(float primeCurrent) {
        this.primeCurrent = primeCurrent;
    }

    public float getFreight() {
        return freight;
    }

    public void setFreight(float freight) {
        this.freight = freight;
    }

    public void setFreight(int freight) {
        this.freight = freight;
    }

    public boolean isBrandNew() {
        return isBrandNew;
    }

    public void setBrandNew(boolean brandNew) {
        isBrandNew = brandNew;
    }

    public GoodsType getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(GoodsType goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getMessageRate() {
        return messageRate;
    }

    public void setMessageRate(Integer messageRate) {
        this.messageRate = messageRate;
    }

    public Integer getClickRate() {
        return clickRate;
    }

    public void setClickRate(Integer clickRate) {
        this.clickRate = clickRate;
    }

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsName) {
        this.goodsTitle = goodsName;
    }

    public List<String> getPictures() {
        return pictures;
    }

    public void setPictures(List<String> pictures) {
        this.pictures = pictures;
    }

    public Student getStudentIssue() {
        return studentIssue;
    }

    public void setStudentIssue(Student studentIssue) {
        this.studentIssue = studentIssue;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String  describe) {
        this.describe = describe;
    }

    public int getCondition() {
        return condition;
    }

    public void setCondition(int condition) {
        this.condition = condition;
    }

    public Student getStudentBuyer() {
        return studentBuyer;
    }

    public void setStudentBuyer(Student studentBuyer) {
        this.studentBuyer = studentBuyer;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsType=" + goodsType +
                ", studentIssue=" + studentIssue +
                ", primeCost=" + primeCost +
                ", primeCurrent=" + primeCurrent +
                ", goodsTitle='" + goodsTitle + '\'' +
                ", clickRate=" + clickRate +
                ", messageRate=" + messageRate +
                ", pictures=" + pictures +
                ", freight=" + freight +
                ", describe='" + describe + '\'' +
                ", condition=" + condition +
                ", isBrandNew=" + isBrandNew +
                ", studentBuyer=" + studentBuyer +
                '}';
    }
}
